package com.bucg.cjcloud.gb28181.common.repository;

import com.bucg.cjcloud.gb28181.common.entity.ItemEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * ItemRepository..
 *
 * @author Lizhong
 * @date 2020/3/5
 */
@Repository
public interface ItemRepository extends JpaRepository<ItemEntity,Long> {

    // ItemEntity findByDeviceID(String deviceId);
    // @Query(value = "select * from ItemEntity where DeviceID=?",nativeQuery = true)
    ItemEntity findByDeviceId(String deviceId);

}
